﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace Notes_CommonDev.Controllers.Vip
{
    [Route("op/Vip.[controller].[action]")]
    [ApiController]
    public class InfoController : ControllerBase
    {
        // GET api/values
        [HttpGet,HttpPost]
        public ActionResult<VipInfo> Get()
        {
            return new VipInfo() {Code="1`23",Name="xxx"};
        }
        [HttpPost]
        public ActionResult<IEnumerable<string>> Modify([FromBody]VipInfo req)
        {
            return new string[] { "value1", "Modify",req.Code, req.Name };
        }
    }
}